home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / pbtlte12.zip / PBTLITE.DOC < prev    next >
Text File  |  1992-02-29  |  81KB  |  5,908 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.                                PBTools:Lite 1.2
  18.  
  19.                     Programmer's Toolkit for PowerBASIC 2.1x
  20.  
  21.         Copyright (c) 1990,1991 by Dave Navarro, Jr., All Rights Reserved
  22.  
  23.                  Licensed to Information Management Systems, Inc
  24.  
  25.                        Shareware Release Documentation
  26.  
  27.  
  28.  
  29.  
  30.        About PBT:Lite
  31.  
  32.           PBTools:Lite is a library of PowerBASIC routines to help
  33.           programmers create professional looking programs without having
  34.           to spend the time to develop such routines on their own.
  35.           The shareware version contains the full documentation and is
  36.           fully functional.  However, the source code is supplied only
  37.           to registered owners of PBTools:Lite.
  38.  
  39.           PBTools:Lite contains the windowing and screen I/O functions
  40.           from PBTools for those people who don't need the whole package.
  41.           Many routines have been revised to fix bugs, enhance their
  42.           usefulness, or "streamline" them for minimum size.
  43.  
  44.        Support:
  45.  
  46.           Support is handled through Information Mangement Systems, Inc
  47.           (see ORDER.FRM for address and phone number).
  48.  
  49.        Warranty:
  50.  
  51.           PBT:Lite is supplied "AS IS", and there is no warranty of any
  52.           type expressed or implied, including, without limitation, the
  53.           warranties of merchantability and of the fitness for any
  54.           purpose.  The author assumes no liability for damages, direct
  55.           or consequential, which may result from the use of PBT:Lite.
  56.  
  57.         Author's Note:
  58.  
  59.           These routines were fully tested on several 80286 and 80386
  60.           clone systems with monochrome, EGA, and VGA setups, and
  61.           operated without any problems. I have left out error handling
  62.           routines in most of the library functions and subs to make the
  63.           routines run as fast as possible.
  64.  
  65.           I have included the source code to the demo supplied with
  66.           PBT:Lite.  I have done my best to add comments to help with
  67.           the usage for all commands.
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.                                      Page i
  79.  
  80.  
  81.  
  82.  
  83.           Acknowledgments:
  84.  
  85.              I would like to thank Bob Zale for what I feel is the best
  86.              BASIC compiler available, and in many cases the best
  87.              compiler overall for any language.
  88.  
  89.              The PBTools libraries have been tested by the following
  90.              people:
  91.  
  92.                    James Davis                     James Jarvis
  93.                    Ronnie Pierce                   Dave Navarro
  94.                    Phillip Kapusta                 Alan Earnshaw
  95.  
  96.              Documentation was re-written and formatted by James Davis.
  97.  
  98.              Source code was reformatted by James Davis.
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.                                      Page ii
  142.  
  143.         ----------------------------------------------------------------
  144.                        T A B L E   O F   C O N T E N T S
  145.         ----------------------------------------------------------------
  146.         About PBT:Lite .............................................. i
  147.         Support ..................................................... i
  148.         Warranty .................................................... i
  149.         Author's Note ............................................... i
  150.         Acknowledgements ............................................ ii
  151.         Command Summary ............................................. v
  152.               AddShadow() ........................................... 1
  153.               Attr% ................................................. 2
  154.               Back%() ............................................... 3
  155.               Box() ................................................. 4
  156.               CapsOff ............................................... 5
  157.               CapsOn ................................................ 6
  158.               CapStat% .............................................. 7
  159.               ChangeWin() ........................................... 8
  160.               CheckKey% ............................................. 9
  161.               ClearWin .............................................. 11
  162.               CloseWin .............................................. 12
  163.               ClrKbd ................................................ 13
  164.               CurBot% ............................................... 14
  165.               CurDisplay% ........................................... 15
  166.               CurTop% ............................................... 16
  167.               DelChar$() ............................................ 17
  168.               Fill() ................................................ 18
  169.               Fore%() ............................................... 19
  170.               GetFrst$() ............................................ 20
  171.               GetKey$ ............................................... 21
  172.               GetScrn$() ............................................ 22
  173.               InitPBScreen .......................................... 23
  174.               InsChar$() ............................................ 24
  175.               InsertOff ............................................. 25
  176.               InsertOn .............................................. 26
  177.               InsStat% .............................................. 27
  178.               IsAlpha%() ............................................ 28
  179.               IsAlphaNum%() ......................................... 29
  180.               IsAlt% ................................................ 30
  181.               IsASCII%() ............................................ 31
  182.               IsCaps% ............................................... 32
  183.               IsCtrl% ............................................... 33
  184.               IsInsert% ............................................. 34
  185.               IsLShift% ............................................. 35
  186.               IsMouse% .............................................. 36
  187.               IsNum%() .............................................. 37
  188.               IsNumLock% ............................................ 38
  189.               IsPunct%() ............................................ 39
  190.               IsRShift% ............................................. 40
  191.               IsScroll% ............................................. 41
  192.               LPad$() ............................................... 42
  193.               LScroll() ............................................. 43
  194.               MLocate() ............................................. 44
  195.               MaskIn() .............................................. 45
  196.               Menu%() ............................................... 46
  197.               MouseKey$ ............................................. 47
  198.               MouseOff .............................................. 48
  199.               MouseOn ............................................... 49
  200.               MouseStat() ........................................... 50
  201.               MouseWin() ............................................ 51
  202.               MoveWin() ............................................. 52
  203.               NoShadow .............................................. 53
  204.  
  205.                                      Page iii
  206.  
  207.  
  208.  
  209.  
  210.               NumIn() ............................................... 54
  211.               NumOff ................................................ 55
  212.               NumOn ................................................. 56
  213.               NumStat% .............................................. 57
  214.               OpenWin() ............................................. 58
  215.               PFirst() .............................................. 59
  216.               PutScrn() ............................................. 60
  217.               RPad$() ............................................... 61
  218.               RScroll() ............................................. 62
  219.               ReAttr() .............................................. 63
  220.               Recolor() ............................................. 64
  221.               ScrollDn() ............................................ 65
  222.               ScrollOff ............................................. 66
  223.               ScrollOn .............................................. 67
  224.               ScrollPrint() ......................................... 68
  225.               ScrollStat% ........................................... 69
  226.               ScrollUp() ............................................ 70
  227.               ScrollWin ............................................. 71
  228.               SetText() ............................................. 72
  229.               StuffKey() ............................................ 73
  230.               TextEd() .............................................. 74
  231.               TextIn() .............................................. 75
  232.               Title() ............................................... 76
  233.               Trim$() ............................................... 77
  234.               VidMode% .............................................. 78
  235.               VidSeg% ............................................... 79
  236.               WPrint() .............................................. 80
  237.               WPrintC() ............................................. 81
  238.               WPrintCF() ............................................ 82
  239.               WinColor() ............................................ 83
  240.               ZoomBox() ............................................. 84
  241.       Appendix ...................................................... 85
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.                                      Page iv
  272.  
  273.  
  274.  
  275.  
  276.                             PBTools:Lite Documentation
  277.  
  278.       AddShadow()   - Adds a shadow to current window.
  279.       Attr%         - Calculates a single integer from foreground and
  280.                       background.
  281.       Back%()       - Calculates background color from a single integer.
  282.       Box()         - Draws a box on the screen.
  283.       CapsOff       - Toggles Caps Lock key off.
  284.       CapsOn        - Toggles Caps Lock key on.
  285.       CapStat%      - Returns status of Caps Lock key.
  286.       Center$()     - Pad a string to the left and right with spaces.
  287.       ChangeWin()   - Changes the size of the current window.
  288.       CheckKey%     - True if key in keyboard buffer.
  289.       ClearWin      - Clears the contents of the current window.
  290.       CloseWin      - Closes a previously opened window.
  291.       ClrKbd        - Clears keyboard buffer without removing keys.
  292.       CurBot%       - Bottom scanline of cursor.
  293.       CurDisplay%   - Returns active display adaptor.
  294.       CurTop%       - Top scanline of cursor.
  295.       DelChar$()    - Deletes one character from a specified string.
  296.       Fill()        - Fills a box on the screen with a character.
  297.       Fore%()       - Calculates foreground color from an integer.
  298.       GetFrst$()    - Returns the first uppercase or number character of a
  299.                       string.
  300.       GetKey$       - Get a single key from keyboard buffer, wait if no key
  301.                       is present.
  302.       GetScrn$()    - Places any portion of the screen into a string.
  303.       InitPBScreen  - Initialize all variables for window routines.
  304.       InsChar$()    - Inserts a character into a specified string.
  305.       InsertOff     - Toggles insert status off.
  306.       InsertOn      - Toggles insert status on.
  307.       InsStat%      - Returns status of INS key.
  308.       IsAlpha%()    - Returns true if character is alpha (A-Z or a-z).
  309.       IsAlphaNum%() - Returns true if character is alphanumeric.
  310.       IsAlt%        - True if ALT key is depressed.
  311.       IsASCII%()    - Returns true if character is a printable ASCII
  312.                       character.
  313.       IsCaps%       - True if Caps Lock key is depressed.
  314.       IsCtrl%       - True if Ctrl key is depressed.
  315.       IsInsert%     - True if INS key is depressed.
  316.       IsLShift%     - True if Left Shift key is depressed.
  317.       IsMouse%      - Returns number of buttons on mouse if installed.
  318.       IsNum%()      - Returns true if character is numeric.
  319.       IsNumLock%    - True if Num Lock key is depressed.
  320.       IsPunct%()    - Returns true if character is punctuation.
  321.       IsRShift%     - True if Right Shift key is depressed.
  322.       IsScroll%     - True is Scroll Lock key is depressed.
  323.       LPad$()       - Pads the left side of a string with a character.
  324.       LScroll()     - Scrolls any portion of the screen to the left.
  325.       MLocate()     - Locate the mouse cursor at any place on screen.
  326.       MaskIn()      - Get masked input from user.
  327.       Menu%()       - Displays a menu and returns choice from user.
  328.       MouseKey$     - Gets a key from keyboard, mouse movement detected.
  329.       MouseOff      - Turns mouse cursor off.
  330.       MouseOn       - Turns mouse cursor on.
  331.       MouseStat()   - Returns mouse position, and button pressed.
  332.       MouseWin()    - Define the window for mouse cursor.
  333.       MoveWin()     - Moves the current window in any one of 4 directions.
  334.       NoShadow      - Removes the shadow form the current window.
  335.  
  336.                                      Page v
  337.  
  338.  
  339.  
  340.  
  341.                             PBTools:Lite Documentation
  342.  
  343.       NumIn()       - Get numeric input from user.
  344.       NumOff        - Toggles Num Lock key off.
  345.       NumOn         - Toggles Num Lock Key on.
  346.       NumStat%      - Returns status of Num Lock Key.
  347.       OpenWin()     - Pops a window on the screen saving whatever is
  348.                       underneath.
  349.       PFirst()      - Print the first uppercase character of a string
  350.                       highlighted.
  351.       PutScrn()     - Puts a string created with GetScrn$() back onto the
  352.                       screen.
  353.       RPad$()       - Pads the right side of a string with a character.
  354.       RScroll()     - Scrolls any portion of the screen to the right.
  355.       ReAttr()      - Changes the color of any position on the screen.
  356.       Recolor()     - Changes color attribute of all positions on screen.
  357.       ScrollDn()    - Scrolls any part of the screen down.
  358.       ScrollOff     - Toggles Scroll Lock key off.
  359.       ScrollOn      - Toggles Scroll Lock key on.
  360.       ScrollPrint() - Scroll window up and print text on the bottom of the
  361.                       window.
  362.       ScrollStat%   - Returns the status of the scroll-lock key.
  363.       ScrollUp()    - Scrolls any part of the screen up.
  364.       ScrollWin     - Scrolls the text within the current window in one of
  365.                       4 directions.
  366.       SetText()     - Sets cursor color from single integer.
  367.       StuffKey()    - Stuff the keyboard buffer with up to 16 characters.
  368.       TextEd()      - Lets user edit the characters within a line.
  369.       TextIn()      - Gets ASCII input from user with editing options.
  370.       Title()       - Displays a title in one of 6 positions.
  371.       Trim$()       - Removes spaces from the beginning and end of a
  372.                       string.
  373.       VidMode%      - Returns current video mode.
  374.       VidSeg%       - Returns the segment of the video address.
  375.       WPrint()      - Displays a string within the current window.
  376.       WPrintC()     - Centers a text string horizontally within the current
  377.                       window.
  378.       WPrintCF()    - Print string centered in window with first
  379.                       character highlighted.
  380.       WinColor()    - Changes the text color of the current window.
  381.       ZoomBox()     - Explodes a box on the screen with noise option.
  382.  
  383.                                      Page vi
  384.  
  385.  
  386.                             PBTools:Lite Documentation
  387.  
  388.       --------------------------------------------------------------------
  389.        AddShadow()     SUB         Adds a shadow to current window.
  390.       ---------------------------------------------------------------------
  391.       By using this sub-routine you can put a shadow in any of 2 predefined
  392.       positions under the current active window using either blank spaces
  393.       or by changing the attributes of the characters beneath the window.
  394.  
  395.       Usage:
  396.        CALL AddShadow(Dir%)
  397.  
  398.               Where Dir% = 1 for Drop Left shadow using black spaces
  399.                          = 2 for Drop Right using black spaces
  400.                          = 3 for Drop Left changing background attributes
  401.                          = 4 for Drop Right changing background
  402.                              attributes
  403.       See Also: NoShadow
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.                                       Page 1
  447.  
  448.  
  449.  
  450.  
  451.                             PBTools:Lite Documentation
  452.  
  453.       ---------------------------------------------------------------------
  454.        Attr%          FUNCTION     Single integer of fore/background.
  455.       ---------------------------------------------------------------------
  456.       Calculates a single integer from foreground and background values
  457.       that you specify.  Use this function to change colors in any sub-
  458.       routine or function in   PBTools:Lite that requires a single integer
  459.       color variable.
  460.  
  461.       Usage:
  462.        Color% = Attr%(foreground%,background%)
  463.               Where Foreground% = Any color of the color table below.
  464.                     Background% = Any color from 0 to 7 of color table.
  465.  
  466.               Color Table:
  467.  
  468.                      0 - Black              8 - Grey
  469.                      1 - Blue               9 - Light Blue
  470.                      2 - Green             10 - Light Green
  471.                      3 - Cyan              11 - Light Cyan
  472.                      4 - Red               12 - Light Red
  473.                      5 - Magenta           13 - Light Magenta
  474.                      6 - Brown             14 - Yellow
  475.                      7 - White             15 - Bright White
  476.  
  477.       See Also:  Back%(), Fore%(), ReAttr(), WinColor()
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.                                       Page 2
  512.  
  513.  
  514.  
  515.  
  516.                             PBTools:Lite Documentation
  517.  
  518.       ---------------------------------------------------------------------
  519.        Back%()        FUNCTION     Calculates background from integer.
  520.       ---------------------------------------------------------------------
  521.       Calculates the background attribute from a single foreground/
  522.       background integer byte.
  523.  
  524.       Usage:
  525.        Background% = Back%(ColorByte%)
  526.  
  527.       See Also:  Attr%, Fore%(), ReAttr(), WinColor()
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.                                       Page 3
  577.  
  578.  
  579.  
  580.  
  581.                             PBTools:Lite Documentation
  582.  
  583.       ---------------------------------------------------------------------
  584.        Box()          SUB          Draws a box on the screen.
  585.       ---------------------------------------------------------------------
  586.       Draws a box on the screen with one of 14 borders types.
  587.  
  588.       Usage:
  589.        CALL Box(Ypos%, Xpos%, Ylen%, Xlen%, Bor%, Shad%, BorC%, TextC%)
  590.  
  591.               Where Ypos%  = Top most row of the box
  592.                     Xpos%  = Left most column of the box
  593.                     Ylen%  = Total number of rows to draw the box in, not
  594.                              including the shadow
  595.                     Xlen%  = Total number of columns to draw the box, not
  596.                              including the shadow
  597.                     Bor%   = The selected border outline is one of the
  598.                              following:
  599.                                0 - No shadow
  600.                                1 - Single line box
  601.                                2 - Double line box
  602.                                3 - Single sides/double top & bottom
  603.                                4 - Double sides/single top & bottom
  604.                                5 - Pulldown single box
  605.                                6 - Pulldown double box
  606.                                7 - Pulldown single top/double sides &
  607.                                    bottom
  608.                                8 - Pulldown double top/single sides &
  609.                                    bottom
  610.                                9 - Single top & bottom/no sides
  611.                               10 - Double top & bottom/no sides
  612.                               11 - Solid style 1
  613.                               12 - Medium hatch
  614.                               13 - Solid style 2
  615.                     Shad%  = Placement of shadow is one of the following:
  616.                                1 - Drop Left shadow using black spaces
  617.                                2 - Drop Right using black spaces
  618.                                3 - Drop Left changing background
  619.                                    attributes
  620.                                4 - Drop Right changing background
  621.                                    attributes
  622.                     BorC%  = Single integer for border color (see Attr%)
  623.                     TextC% = Single integer for text color (see Attr%)
  624.  
  625.       See Also:  Attr%
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.                                       Page 4
  642.  
  643.  
  644.  
  645.  
  646.                             PBTools:Lite Documentation
  647.  
  648.       ---------------------------------------------------------------------
  649.        CapsOff        SUB          Toggles Caps Lock key off.
  650.       ---------------------------------------------------------------------
  651.       Toggles the Caps Lock key to its OFF state.
  652.  
  653.       Usage:
  654.        CALL CapsOff
  655.  
  656.       See Also:  CapsOn, CapStat%
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.                                       Page 5
  707.  
  708.  
  709.  
  710.  
  711.                             PBTools:Lite Documentation
  712.  
  713.       ---------------------------------------------------------------------
  714.        CapsOn         SUB          Toggles Caps Lock key on.
  715.       ---------------------------------------------------------------------
  716.       Toggles the Caps Lock key to its ON state.
  717.  
  718.       Usage:
  719.        CALL CapsOn
  720.  
  721.       See Also:  CapsOff, CapStat%
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.                                       Page 6
  772.  
  773.  
  774.  
  775.  
  776.                             PBTools:Lite Documentation
  777.  
  778.       ---------------------------------------------------------------------
  779.        CapStat%       FUNCTION     Status of Caps Lock key.
  780.       ---------------------------------------------------------------------
  781.       Returns a non-zero number if Caps Lock is on.
  782.  
  783.       Usage:
  784.         IF CapStat% THEN CALL CapsOff
  785.  
  786.       See Also:  CapsOff, CapsOn
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.                                       Page 7
  837.  
  838.  
  839.  
  840.  
  841.                             PBTools:Lite Documentation
  842.  
  843.       ---------------------------------------------------------------------
  844.        ChangeWin()    SUB          Changes the size of the current window.
  845.       ---------------------------------------------------------------------
  846.       Changes the size of the current window.  There can be NO shadow on
  847.       the window when you resize it.
  848.  
  849.       Usage:
  850.        CALL ChangeWin(Dir%)
  851.  
  852.               Where Dir% = the direction that you want to resize.
  853.                  If Dir% = 1 then adds to the right one position.
  854.                          = 2 then removes from the right one position.
  855.                          = 3 then adds to the bottom one row.
  856.                          = 4 then removes from the bottom one row.
  857.  
  858.       See Also:  MoveWin()
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.                                       Page 8
  902.  
  903.  
  904.  
  905.  
  906.                             PBTools:Lite Documentation
  907.  
  908.       ---------------------------------------------------------------------
  909.        CheckKey%      FUNCTION     True if key is in keyboard buffer.
  910.       ---------------------------------------------------------------------
  911.       Checks the keyboard buffer to see if a key is present without
  912.       removing it.
  913.  
  914.       Usage:
  915.        IF CheckKey% THEN GOSUB GetAllKeys
  916.  
  917.       See Also:  ClrKbd, GetKey$, IsAlt%, IsCaps%, IsCtrl%, IsInsert%,
  918.                  IsLShift%, IsNum%, IsRShift%, IsScroll%, StuffKey()
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.                                       Page 9
  967.  
  968.  
  969.  
  970.  
  971.                             PBTools:Lite Documentation
  972.  
  973.       ---------------------------------------------------------------------
  974.        ClearWin       SUB          Clears contents of the current window.
  975.       ---------------------------------------------------------------------
  976.       Clears the contents of the current window.
  977.  
  978.       Usage:
  979.        CALL ClearWin
  980.  
  981.       See Also:  OpenWin(), WinColor(), WPrint(), WPrintC(), WPrintCF()
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.                                      Page 10
  1032.  
  1033.  
  1034.  
  1035.  
  1036.                             PBTools:Lite Documentation
  1037.  
  1038.       ---------------------------------------------------------------------
  1039.        CloseWin       SUB          Closes the current active window.
  1040.       ---------------------------------------------------------------------
  1041.       Closes the current active window.  DO NOT close a window unless it is
  1042.       the last window you popped onto the screen, otherwise you lose
  1043.       access to all windows following it.
  1044.  
  1045.       Usage:
  1046.        CALL CloseWin
  1047.  
  1048.       See Also:  OpenWin()
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.                                      Page 11
  1097.  
  1098.  
  1099.  
  1100.  
  1101.                             PBTools:Lite Documentation
  1102.  
  1103.       ---------------------------------------------------------------------
  1104.        ClrKbd         SUB          Clear all keys from keyboard buffer.
  1105.       ---------------------------------------------------------------------
  1106.       Clears all keys from the keyboard buffer.
  1107.  
  1108.       Usage:
  1109.        CALL ClrKbd
  1110.  
  1111.       See Also: CheckKey%, GetKey$, StuffKey()
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.                                      Page 12
  1162.  
  1163.  
  1164.  
  1165.  
  1166.                             PBTools:Lite Documentation
  1167.  
  1168.       ---------------------------------------------------------------------
  1169.        CurBot%        FUNCTION     Scanline for bottom of cursor.
  1170.       ---------------------------------------------------------------------
  1171.       Returns a numeric value of the scanline for the bottom of the cursor.
  1172.       The cursor need not be displayed when routine is called.
  1173.  
  1174.       Usage:
  1175.        CursorBottom% = CurBot%
  1176.  
  1177.       See Also:  CurTop%
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.                                      Page 13
  1227.  
  1228.  
  1229.  
  1230.  
  1231.                             PBTools:Lite Documentation
  1232.  
  1233.       ---------------------------------------------------------------------
  1234.        CurDisplay%    FUNCTION     Returns the active video display.
  1235.       ---------------------------------------------------------------------
  1236.       This function returns a numerical value of the type of active video
  1237.       display found in the BIOS ROM.
  1238.  
  1239.       Usage:
  1240.        VidType% = CurDisplay%
  1241.  
  1242.               Where 0 is returned when the display is Monochrome
  1243.                     1 is returned when the display is CGA
  1244.                     2 is returned when the display is EGA
  1245.                     3 is returned when the display is MCGA
  1246.                     4 is returned when the display is VGA
  1247.  
  1248.       See Also:  VidSeg%, VidMode%
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.                                      Page 14
  1292.  
  1293.  
  1294.  
  1295.  
  1296.                             PBTools:Lite Documentation
  1297.  
  1298.       ---------------------------------------------------------------------
  1299.        CurTop%        FUNCTION     Scanline for the top of cursor.
  1300.       ---------------------------------------------------------------------
  1301.       Returns a numeric value of the scanline for the top of the cursor.
  1302.  
  1303.       Usage:
  1304.        CursorTop% = CurTop%
  1305.  
  1306.       See Also:  CurBot%
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.                                      Page 15
  1357.  
  1358.  
  1359.  
  1360.  
  1361.                             PBTools:Lite Documentation
  1362.  
  1363.       ---------------------------------------------------------------------
  1364.        DelChar$()     FUNCTION     Deletes one character from a string.
  1365.       ---------------------------------------------------------------------
  1366.       Deletes one character from the user specified string.
  1367.  
  1368.       Usage:
  1369.        A$ = DelChar$(Tmp$, Xpos%)
  1370.  
  1371.               Where Xpos% = The position of the character you wish to
  1372.                             delete.
  1373.  
  1374.       See Also:  InsChar$()
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.                                      Page 16
  1422.  
  1423.  
  1424.  
  1425.  
  1426.                             PBTools:Lite Documentation
  1427.  
  1428.       ---------------------------------------------------------------------
  1429.        Fill()         SUB          Fills box with given character.
  1430.       ---------------------------------------------------------------------
  1431.       Fills a box on the screen with a given character and background
  1432.       attribute.
  1433.  
  1434.       Usage:
  1435.        CALL Fill(Ypos%, Xpos%, Ylen%, Xlen%, Char%, Atr%)
  1436.  
  1437.               Where Char% = Characters to fill box with
  1438.                     Atr%  = Attribute to display character in
  1439.  
  1440.       See Also:  Attr%, Box(), ReAttr(), Recolor
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.                                      Page 17
  1487.  
  1488.  
  1489.  
  1490.  
  1491.                             PBTools:Lite Documentation
  1492.  
  1493.       ---------------------------------------------------------------------
  1494.        Fore%()        FUNCTION     Calculates foreground from integer.
  1495.       ---------------------------------------------------------------------
  1496.       Calculates foreground from a single color attribute integer.
  1497.  
  1498.       Usage:
  1499.        ForeGround% = Fore(Atr%)
  1500.  
  1501.       See Also:  Attr%, Back%()
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.                                      Page 18
  1552.  
  1553.  
  1554.  
  1555.  
  1556.                             PBTools:Lite Documentation
  1557.  
  1558.       ---------------------------------------------------------------------
  1559.        GetFrst$()     FUNCTION     Gets the first character from string.
  1560.       ---------------------------------------------------------------------
  1561.       Returns the first valid alphanumeric character of a string.
  1562.  
  1563.       Usage:
  1564.        A$ = GetFrst$(Temp$)
  1565.  
  1566.       See Also:  PFirst(), WPrintCF()
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.                                      Page 19
  1617.  
  1618.  
  1619.  
  1620.  
  1621.                             PBTools:Lite Documentation
  1622.  
  1623.       ---------------------------------------------------------------------
  1624.        GetKey$        FUNCTION     Gets single key from keyboard buffer.
  1625.       ---------------------------------------------------------------------
  1626.       Gets a single key from the keyboard buffer, waits if no key
  1627.       is pressed.  Does not check the status of the shift keys.
  1628.  
  1629.       Usage:
  1630.        I$ = GetKey$
  1631.  
  1632.       See Also:  CheckKey%, ClrKbd, MaskIn(), MouseKey$, NumIn(), TextEd(),
  1633.                  TextIn()
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.                                      Page 20
  1682.  
  1683.  
  1684.  
  1685.  
  1686.                             PBTools:Lite Documentation
  1687.  
  1688.       ---------------------------------------------------------------------
  1689.        GetScrn$()     FUNCTION     Puts portion of screen into a string.
  1690.       ---------------------------------------------------------------------
  1691.       Places any portion of the screen and it's color attributes in
  1692.       a string.
  1693.  
  1694.       Usage:
  1695.        Top$ = GetScrn$(Ypos%, Xpos%, Xlen%)
  1696.  
  1697.       See Also:  PutScrn()
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.                                      Page 21
  1747.  
  1748.  
  1749.  
  1750.  
  1751.                             PBTools:Lite Documentation
  1752.  
  1753.       ---------------------------------------------------------------------
  1754.        InitPBScreen   SUB          Initializes all variables for windows.
  1755.       ---------------------------------------------------------------------
  1756.       This command should be called upon before using any of the windowing
  1757.       subroutines or functions.  It initializes all variables necessary for
  1758.       proper windowing to occur.
  1759.  
  1760.       Usage:
  1761.        CALL InitPBScreen
  1762.  
  1763.       See Also:  CloseWin, OpenWin()
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.                                      Page 22
  1812.  
  1813.  
  1814.  
  1815.  
  1816.                             PBTools:Lite Documentation
  1817.  
  1818.       ---------------------------------------------------------------------
  1819.        InsChar$()     FUNCTION     Inserts single character in a string.
  1820.       ---------------------------------------------------------------------
  1821.       Inserts a single character into a user specified string.
  1822.  
  1823.       Usage:
  1824.        A$ = InsChar$(Tmp$, Tmp2$, Xpos%)
  1825.               Where Tmp$  = The string to be used
  1826.                     Tmp2$ = The character to insert into Tmp$
  1827.                     Xpos% = The position in Tmp$ where Tmp2$ should go
  1828.  
  1829.       See Also:  DelChar$()
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.                                      Page 23
  1877.  
  1878.  
  1879.  
  1880.  
  1881.                             PBTools:Lite Documentation
  1882.  
  1883.       ---------------------------------------------------------------------
  1884.        InsertOff      SUB          Toggles Insert key off.
  1885.       ---------------------------------------------------------------------
  1886.       Toggles the Insert key to its OFF state.
  1887.  
  1888.       Usage:
  1889.        CALL InsertOff
  1890.  
  1891.       See Also:  InsertOn, InsStat%, IsInsert%
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.                                      Page 24
  1942.  
  1943.  
  1944.  
  1945.  
  1946.                             PBTools:Lite Documentation
  1947.  
  1948.       ---------------------------------------------------------------------
  1949.        InsertOn       SUB          Toggles Insert key on.
  1950.       ---------------------------------------------------------------------
  1951.       Toggles the Insert key to its ON state.
  1952.  
  1953.       Usage:
  1954.        CALL InsertOn
  1955.  
  1956.       See Also:  InsertOff, InsStat%, IsInsert%
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.                                      Page 25
  2007.  
  2008.  
  2009.  
  2010.  
  2011.                             PBTools:Lite Documentation
  2012.  
  2013.       ---------------------------------------------------------------------
  2014.        InsStat%       FUNCTION     Returns status of Insert key.
  2015.       ---------------------------------------------------------------------
  2016.       Returns the status of the insert key.  If it is ON it returns a
  2017.       non-zero number.
  2018.  
  2019.       Usage:
  2020.        Status%=InsStat%
  2021.  
  2022.       See Also:  InsertOff, InsertOn, IsInsert%
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.                                      Page 26
  2072.  
  2073.  
  2074.  
  2075.  
  2076.                             PBTools:Lite Documentation
  2077.  
  2078.       ---------------------------------------------------------------------
  2079.        IsAlpha%()     FUNCTION     Tests if a character is alpha.
  2080.       ---------------------------------------------------------------------
  2081.       Returns a non-zero number if a character passed to it is alpha (A-Z
  2082.       or a-z).
  2083.  
  2084.       Usage:
  2085.        IF IsAlpha%(A$) THEN Yep
  2086.  
  2087.       See Also:  IsASCII%(), IsAlphaNum%(), IsNum%(), IsPunct%()
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.                                      Page 27
  2137.  
  2138.  
  2139.  
  2140.  
  2141.                             PBTools:Lite Documentation
  2142.  
  2143.       ---------------------------------------------------------------------
  2144.        IsAlphaNum%()  FUNCTION     Tests if a characters is alphanumeric.
  2145.       ---------------------------------------------------------------------
  2146.       This function returns a non-zero value if the character passed to it
  2147.       is an alphanumeric character.
  2148.  
  2149.       Usage:
  2150.        IF IsAlphaNum%(A$) THEN Yep
  2151.  
  2152.       See Also:  IsAlpha%(), IsASCII%(), IsNum%(), IsPucnt%()
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.                                      Page 28
  2202.  
  2203.  
  2204.  
  2205.  
  2206.                             PBTools:Lite Documentation
  2207.  
  2208.       ---------------------------------------------------------------------
  2209.        IsAlt%         FUNCTION     True if Alt key is depressed.
  2210.       ---------------------------------------------------------------------
  2211.       Returns a non-zero number if an Alt key is depressed.
  2212.  
  2213.       Usage:
  2214.        IF IsAlt% THEN AltKeyPressed
  2215.  
  2216.       See Also:  GetKey$, IsCaps%, IsCtrl%, IsInsert%, IsLShift%,
  2217.                  IsNumLock%, IsRShift%
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.                                      Page 29
  2267.  
  2268.  
  2269.  
  2270.  
  2271.                             PBTools:Lite Documentation
  2272.  
  2273.       ---------------------------------------------------------------------
  2274.        IsASCII%()     FUNCTION     Tests if a character is printable ASCII.
  2275.       ---------------------------------------------------------------------
  2276.       This function returns a non-zero number if the character passed to it
  2277.       is a printable ASCII character.  Valid characters range from 32 to
  2278.       126.
  2279.  
  2280.       Usage:
  2281.        IF IsASCII%(A$) THEN Yep
  2282.  
  2283.       See Also:  IsAlpha%(), IsAlphaNum%(), IsNum%(), IsPunct%()
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.  
  2326.  
  2327.  
  2328.  
  2329.  
  2330.  
  2331.                                      Page 30
  2332.  
  2333.  
  2334.  
  2335.  
  2336.                             PBTools:Lite Documentation
  2337.  
  2338.       ---------------------------------------------------------------------
  2339.        IsCaps%        FUNCTION     True if Caps Lock key is depressed.
  2340.       ---------------------------------------------------------------------
  2341.       Returns a non-zero number if the Caps Lock key is depressed.
  2342.  
  2343.       Usage:
  2344.        IF IsCaps% THEN Yep
  2345.  
  2346.       See Also:  GetKey$, IsAlt%, IsCtrl%, IsInsert%, IsLShift%,
  2347.                  IsNumLock%, IsRShift%
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.                                      Page 31
  2397.  
  2398.  
  2399.  
  2400.  
  2401.                             PBTools:Lite Documentation
  2402.  
  2403.       ---------------------------------------------------------------------
  2404.        IsCtrl%        FUNCTION     True if Ctrl key is depressed.
  2405.       ---------------------------------------------------------------------
  2406.       Returns a non-zero number if a Ctrl key is depressed.
  2407.  
  2408.       Usage:
  2409.        IF IsCtrl% THEN Yep
  2410.  
  2411.       See Also:  GetKey$, IsAlt%, IsCaps%, IsInsert%, IsLShift%,
  2412.                  IsNumLock%, IsRShift%
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.                                      Page 32
  2462.  
  2463.  
  2464.  
  2465.  
  2466.                             PBTools:Lite Documentation
  2467.  
  2468.       ---------------------------------------------------------------------
  2469.        IsInsert%      FUNCTION     True if Insert key is depressed.
  2470.       ---------------------------------------------------------------------
  2471.       Returns a non-zero number if the Insert key is depressed.
  2472.  
  2473.       Usage:
  2474.        IF IsInsert% THEN Yep
  2475.  
  2476.       See Also:  GetKey$, IsAlt%, IsCaps%, IsCtrl%, IsLShift%, IsNumLock%,
  2477.                  IsRShift%
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.                                      Page 33
  2527.  
  2528.  
  2529.  
  2530.  
  2531.                             PBTools:Lite Documentation
  2532.  
  2533.       ---------------------------------------------------------------------
  2534.        IsLShift%      FUNCTION     True if Left Shift key is depressed.
  2535.       ---------------------------------------------------------------------
  2536.       Returns a non-zero number if the Left Shift Key is depressed.
  2537.  
  2538.       Usage:
  2539.         IF IsLShift% THEN Yep
  2540.  
  2541.       See Also:  IsRShift%
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.                                      Page 34
  2592.  
  2593.  
  2594.  
  2595.  
  2596.                             PBTools:Lite Documentation
  2597.  
  2598.       ---------------------------------------------------------------------
  2599.        IsMouse%       FUNCTION     Number of buttons on a mouse.
  2600.       ---------------------------------------------------------------------
  2601.       Returns the number of buttons a mouse has if one is installed.
  2602.  
  2603.       Usage:
  2604.        IF IsMouse% THEN Buttons%=IsMouse%
  2605.  
  2606.       See Also:  MLocate(), MouseKey$, MouseOff, MouseOn, MouseStat(),
  2607.                  MouseWin()
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.                                      Page 35
  2657.  
  2658.  
  2659.  
  2660.  
  2661.                             PBTools:Lite Documentation
  2662.  
  2663.       ---------------------------------------------------------------------
  2664.        IsNum%()       FUNCTION     Test if character is a number.
  2665.       ---------------------------------------------------------------------
  2666.       This function returns a non-zero number if the character passed to it
  2667.       is a number character.  The characters evaluated are "0" [CHR$(48)]
  2668.       thru 9 [CHR$(57)].
  2669.  
  2670.       Usage:
  2671.        IF IsNum%(A$) THEN Yep
  2672.  
  2673.       See Also:  IsAlpha%(), IsAlphaNum%(), IsASCII%(), IsPunct%()
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.                                      Page 36
  2722.  
  2723.  
  2724.  
  2725.  
  2726.                             PBTools:Lite Documentation
  2727.  
  2728.       ---------------------------------------------------------------------
  2729.        IsNumLock%     FUNCTION     True if Num Lock key is depressed.
  2730.       ---------------------------------------------------------------------
  2731.       Returns a non-zero number if the Num Lock key is depressed.
  2732.  
  2733.       Usage:
  2734.        IF IsNumLock% THEN Yep
  2735.  
  2736.       See Also:  GetKey$, IsAlt%, IsCaps%, IsCtrl%, IsInsert%, IsLShift%,
  2737.                  IsRShift%
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.  
  2753.  
  2754.  
  2755.  
  2756.  
  2757.  
  2758.  
  2759.  
  2760.  
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.                                      Page 37
  2787.  
  2788.  
  2789.  
  2790.  
  2791.                             PBTools:Lite Documentation
  2792.  
  2793.       ---------------------------------------------------------------------
  2794.        IsPunct%()     FUNCTION     Tests if a character is punctuation.
  2795.       ---------------------------------------------------------------------
  2796.       This function returns a non-zero number if a character is a valid
  2797.       punctuation symbol.  Valid punctuation symbols are: !@#$%^&*(),.:;'"?
  2798.       /\[]{}-+=<>
  2799.  
  2800.       Usage:
  2801.        IF IsPunct%(A$) THEN Yep
  2802.  
  2803.       See Also:  IsAlpha%(), IsAlphaNum%(), IsASCII%(), IsNum%()
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.                                      Page 38
  2852.  
  2853.  
  2854.  
  2855.  
  2856.                             PBTools:Lite Documentation
  2857.  
  2858.       ---------------------------------------------------------------------
  2859.        IsRShift%      FUNCTION     True if Right Shift key is depressed.
  2860.       ---------------------------------------------------------------------
  2861.       Returns a non-zero number if the Right Shift key is depressed.
  2862.  
  2863.       Usage:
  2864.        IF IsRShift% THEN Yep
  2865.  
  2866.       See Also:  GetKey$, IsAlt%, IsCaps%, IsCtrl%, IsInsert%, IsLShift%,
  2867.                  IsNumLock%
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.                                      Page 39
  2917.  
  2918.  
  2919.  
  2920.  
  2921.                             PBTools:Lite Documentation
  2922.  
  2923.       ---------------------------------------------------------------------
  2924.        IsScroll%      FUNCTION     True if Scroll Lock key is depressed.
  2925.       ---------------------------------------------------------------------
  2926.       Returns a non-zero number if the Scroll Lock key is depressed.
  2927.  
  2928.       Usage:
  2929.        IF IsScroll% THEN Yep
  2930.  
  2931.       See Also:  GetKey$, IsAlt%, IsCaps%, IsCtrl%, IsInsert%, IsLShift%,
  2932.                  IsNumLock%
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.                                      Page 40
  2982.  
  2983.  
  2984.  
  2985.  
  2986.                             PBTools:Lite Documentation
  2987.  
  2988.       ---------------------------------------------------------------------
  2989.        LPad$()        FUNCTION     Pads left side of string with character.
  2990.       ---------------------------------------------------------------------
  2991.       This function will pad the left side of a string with any user
  2992.       defined character.
  2993.  
  2994.       Usage:
  2995.        A$ = LPad$(Lin$, Length%, Char%)
  2996.  
  2997.               Where Lin$    = The string you wish to pad.
  2998.                     Length% = How many characters to pad the left side of
  2999.                               the string with.
  3000.                     Char%   = The ASCII value of the character you wish
  3001.                               to pad the string with.
  3002.  
  3003.       See Also:  RPad$(), Trim$()
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.                                      Page 41
  3047.  
  3048.  
  3049.  
  3050.  
  3051.                             PBTools:Lite Documentation
  3052.  
  3053.       ---------------------------------------------------------------------
  3054.        LScroll()      SUB          Scrolls portion of screen left.
  3055.       ---------------------------------------------------------------------
  3056.       Scrolls any portion of the screen to the left.
  3057.  
  3058.       Usage:
  3059.        CALL LScroll(TopRow%, LeftCol%, BotRow%, RightCol%, Cols%)
  3060.  
  3061.       See Also:  RScroll(), ScrollDn(), ScrollUp(), ScrollWin
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.                                      Page 42
  3112.  
  3113.  
  3114.  
  3115.  
  3116.                             PBTools:Lite Documentation
  3117.  
  3118.       ---------------------------------------------------------------------
  3119.        MaskIn()       SUB          Gets masked input from the user.
  3120.       ---------------------------------------------------------------------
  3121.       By specifying a Mask$ you may get input only in the areas where you
  3122.       wish.
  3123.  
  3124.       Usage:
  3125.        CALL MaskIn(Ypos%, Xpos%, TexCol%, Hilite%, Mask$, Deflt$, Term$)
  3126.  
  3127.               Where TexCol% = The color of the text when editing is done
  3128.                     Hilite% = The color of the text as it is edited
  3129.                     Mask$   = the desired mask to use for getting input
  3130.                               The following characters can be used in
  3131.                               defining a Mask$:
  3132.                                 _ = Any character
  3133.                                 @ = Alpha characters only (Upper and Lower)
  3134.                                 # = Numeric characters only
  3135.                                 ! = Uppercase Alpha only
  3136.                                 | = Alpha and numeric only (Uppercase)
  3137.                     Deflt$  = The default answer for input.
  3138.                     Term$   = The terminating key returned for editing.
  3139.  
  3140.       See Also:  GetKey$, MouseKey$, NumIn(), TextEd(), TextIn()
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.                                      Page 43
  3177.  
  3178.  
  3179.  
  3180.  
  3181.                             PBTools:Lite Documentation
  3182.  
  3183.       ---------------------------------------------------------------------
  3184.        Menu%()        FUNCTION     Uses a menu to get choice from user.
  3185.       ---------------------------------------------------------------------
  3186.       Displays a menu with a moveable scroll bar and allows user to either
  3187.       choose a selection with the first letter of the menu selection or by
  3188.       pressing Enter.
  3189.  
  3190.       Usage:
  3191.        Choice%=Menu%(Choices$(), Ypos%, Ylen%, Current%, Hilite%, Typ%)
  3192.  
  3193.               Where Choices$() = Choices to display.
  3194.                     Ypos%      = The starting row to the display menu
  3195.                                  relative to  the current open window.
  3196.                     Ylen%      = The number of the choices to display.  If
  3197.                                  all choices cannot be displayed then
  3198.                                  remaining choices will be scrolled onto
  3199.                                  the screen.
  3200.                     Current%   = The default choice to hilite first.
  3201.                     Hilite%    = The color to display the current choice.
  3202.                     Typ%       = Defines the type of menu.  If Typ% = 0
  3203.                                  the menu will be non-hotkey, any other
  3204.                                  value defaults to hotkey type menu
  3205.                                  allowing for first letter of selection
  3206.                                  to be pressed ending routine.
  3207.  
  3208.       See Also:  OpenWin()
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.  
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.                                      Page 44
  3242.  
  3243.  
  3244.  
  3245.  
  3246.                             PBTools:Lite Documentation
  3247.  
  3248.       ---------------------------------------------------------------------
  3249.        MLocate()      SUB          Locates mouse cursor on screen.
  3250.       ---------------------------------------------------------------------
  3251.       Locates the mouse cursor to a desired position on the screen.
  3252.  
  3253.       Usage:
  3254.        CALL MLocate(Ypos%,Xpos%)
  3255.  
  3256.       See Also:  IsMouse%, MouseOff, MouseOn, MouseStat()
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.                                      Page 45
  3307.  
  3308.  
  3309.  
  3310.  
  3311.                             PBTools:Lite Documentation
  3312.  
  3313.       ---------------------------------------------------------------------
  3314.        MouseKey$      FUNCTION     Gets input from mouse buttons.
  3315.       ---------------------------------------------------------------------
  3316.       Gets keyboard input from user.  If mouse is attached, mouse
  3317.       movements are also used.  Left Button = Enter, Right Button = Esc
  3318.  
  3319.       Usage:
  3320.        I$=MouseKey$
  3321.  
  3322.       See Also: GetKey$, IsMouse%
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.                                      Page 46
  3372.  
  3373.  
  3374.  
  3375.  
  3376.                             PBTools:Lite Documentation
  3377.  
  3378.       ---------------------------------------------------------------------
  3379.        MouseOff       SUB          Turns mouse cursor off.
  3380.       ---------------------------------------------------------------------
  3381.       Turns the mouse cursor OFF so that it is hidden and not displayed on
  3382.       the screen.
  3383.  
  3384.       Usage:
  3385.        CALL MouseOff
  3386.  
  3387.       See Also:  IsMouse%, MouseOn, MouseStat()
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.                                      Page 47
  3437.  
  3438.  
  3439.  
  3440.  
  3441.                             PBTools:Lite Documentation
  3442.  
  3443.       ---------------------------------------------------------------------
  3444.        MouseOn        SUB          Turns mouse cursor on.
  3445.       ---------------------------------------------------------------------
  3446.       Turns the mouse cursor ON so it is visible on the screen.
  3447.  
  3448.       Usage:
  3449.        CALL MouseOn
  3450.  
  3451.       See Also:  IsMouse%, MouseOff, MouseStat()
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475.  
  3476.  
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.  
  3483.  
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.                                      Page 48
  3502.  
  3503.  
  3504.  
  3505.  
  3506.                             PBTools:Lite Documentation
  3507.  
  3508.       ---------------------------------------------------------------------
  3509.        MouseStat()    SUB          Gets status of mouse buttons.
  3510.       ---------------------------------------------------------------------
  3511.       Returns the status of the mouse buttons if one is installed.
  3512.  
  3513.       Usage:
  3514.        CALL MouseStat(Button%, Ypos%, Xpos%)
  3515.  
  3516.               Where Button% = Current button(s) depressed
  3517.  
  3518.       See Also:  IsMouse%, MouseOff, MouseOn
  3519.  
  3520.  
  3521.  
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.  
  3537.  
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.                                      Page 49
  3567.  
  3568.  
  3569.  
  3570.  
  3571.                             PBTools:Lite Documentation
  3572.  
  3573.       ---------------------------------------------------------------------
  3574.        MouseWin()     SUB          Defines window for mouse cursor.
  3575.       ---------------------------------------------------------------------
  3576.       Defines the window for the mouse cursor to be displayed in.
  3577.  
  3578.       Usage:
  3579.        CALL MouseWin(Ypos%, Xpos%, Ylen%, Xlen%)
  3580.  
  3581.       See Also:  IsMouse%, MouseOff, MouseOn, MouseStat()
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.  
  3601.  
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  
  3607.  
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614.  
  3615.  
  3616.  
  3617.  
  3618.  
  3619.  
  3620.  
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.                                      Page 50
  3632.  
  3633.  
  3634.  
  3635.  
  3636.                             PBTools:Lite Documentation
  3637.  
  3638.       ---------------------------------------------------------------------
  3639.        MoveWin()      SUB          Moves current active window.
  3640.       ---------------------------------------------------------------------
  3641.       Moves the current active window on the screen.
  3642.  
  3643.       Usage:
  3644.        CALL MoveWin(Dir%)
  3645.  
  3646.               Where if Dir% = 1 then moves window Right one position.
  3647.                             = 2 then moves window Left one position.
  3648.                             = 3 then moves window Down one position.
  3649.                             = 4 then moves window Up one position.
  3650.  
  3651.       See Also:  NoShadow, OpenWin()
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.                                      Page 51
  3697.  
  3698.  
  3699.  
  3700.  
  3701.                             PBTools:Lite Documentation
  3702.  
  3703.       ---------------------------------------------------------------------
  3704.        NoShadow      SUB          Removes shadow from current window.
  3705.       ---------------------------------------------------------------------
  3706.       Removes the shadow from the current window.  (Required when
  3707.       moving or resizing windows)
  3708.  
  3709.       Usage:
  3710.        CALL NoShadow
  3711.  
  3712.       See Also:  AddShadow(), ChangeWin(), MoveWin()
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.  
  3719.  
  3720.  
  3721.  
  3722.  
  3723.  
  3724.  
  3725.  
  3726.  
  3727.  
  3728.  
  3729.  
  3730.  
  3731.  
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.                                      Page 52
  3762.  
  3763.  
  3764.  
  3765.  
  3766.                             PBTools:Lite Documentation
  3767.  
  3768.       ---------------------------------------------------------------------
  3769.        NumIn()        SUB          Gets numeric input from user.
  3770.       ---------------------------------------------------------------------
  3771.       Gets numeric input from the user with text editing features.
  3772.  
  3773.       Usage:
  3774.        CALL NumIn(Ypos%, Xpos%, Digits%, NumCol%, Hilite%, Answer#, Term$)
  3775.  
  3776.               Where Digits% = Numbers after decimal point
  3777.                     NumCol% = Color of text after input
  3778.                     Answer# = Double precision real number with input
  3779.                     Term$   = Key used to terminate input
  3780.  
  3781.       See Also:  GetKey$, MaskIn(), TextEd(), TextIn()
  3782.  
  3783.  
  3784.  
  3785.  
  3786.  
  3787.  
  3788.  
  3789.  
  3790.  
  3791.  
  3792.  
  3793.  
  3794.  
  3795.  
  3796.  
  3797.  
  3798.  
  3799.  
  3800.  
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810.  
  3811.  
  3812.  
  3813.  
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.                                      Page 53
  3827.  
  3828.  
  3829.  
  3830.  
  3831.                             PBTools:Lite Documentation
  3832.  
  3833.       ---------------------------------------------------------------------
  3834.        NumOff         SUB          Toggles Num Lock key off.
  3835.       ---------------------------------------------------------------------
  3836.       Toggles the Num Lock key to its OFF state.
  3837.  
  3838.       Usage:
  3839.        CALL NumOff
  3840.  
  3841.       See Also:  NumOn
  3842.  
  3843.  
  3844.  
  3845.  
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.                                      Page 54
  3892.  
  3893.  
  3894.  
  3895.  
  3896.                             PBTools:Lite Documentation
  3897.  
  3898.       ---------------------------------------------------------------------
  3899.        NumOn         SUB          Toggles Num Lock key on.
  3900.       ---------------------------------------------------------------------
  3901.       Toggles the Num Lock key to its ON state.
  3902.  
  3903.       Usage:
  3904.        CALL NumOn
  3905.  
  3906.       See Also:  NumOff
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949.  
  3950.  
  3951.  
  3952.  
  3953.  
  3954.  
  3955.  
  3956.                                      Page 55
  3957.  
  3958.  
  3959.  
  3960.  
  3961.                             PBTools:Lite Documentation
  3962.  
  3963.       ---------------------------------------------------------------------
  3964.        NumStat%       FUNCTION     True if Num Lock key is on.
  3965.       ---------------------------------------------------------------------
  3966.       Returns a non-zero number if Num Lock is on.
  3967.  
  3968.       Usage:
  3969.        IF NumStat% THEN Yep
  3970.  
  3971.       See Also:  NumOff, NumOn
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978.  
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.  
  4021.                                      Page 56
  4022.  
  4023.  
  4024.  
  4025.  
  4026.                             PBTools:Lite Documentation
  4027.  
  4028.       ---------------------------------------------------------------------
  4029.        OpenWin()      SUB          Pops window on screen.
  4030.       ---------------------------------------------------------------------
  4031.       Pops a window on the screen saving all contents underneath.
  4032.  
  4033.       Usage:
  4034.        CALL OpenWin(Ypos%,Xpos%,YLen%,Xlen%,Brdr%,BrC%,TxC%,Shd%,Zm%,Ns%)
  4035.  
  4036.               Where Brdr% = Border selection (see Box())
  4037.                     BrC%  = The color attribute to print border
  4038.                     TxC%  = The color attribute for text
  4039.                     Shd%  = The placement of the shadow (see Box())
  4040.                     Zm%   = True - zoom the window onto the screen
  4041.                     Ns%   = True - make noise when opening window
  4042.  
  4043.       See Also:  Box(), CloseWin
  4044.  
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.  
  4068.  
  4069.  
  4070.  
  4071.  
  4072.  
  4073.  
  4074.  
  4075.  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.                                      Page 57
  4087.  
  4088.  
  4089.  
  4090.  
  4091.                             PBTools:Lite Documentation
  4092.  
  4093.       ---------------------------------------------------------------------
  4094.        PFirst()       SUB          Prints string, first char highlighted.
  4095.       ---------------------------------------------------------------------
  4096.       Prints a user specified string with the first valid character of that
  4097.       string highlighted.
  4098.  
  4099.       Usage:
  4100.         CALL PFirst(Temp$, TextC%, HltC%)
  4101.  
  4102.               Where Temp$  = The text to be printed.
  4103.                     TextC% = The one byte color of the text to be printed.
  4104.                              (See Attr%)
  4105.                     HltC%  = The one byte color of the highlighted text.
  4106.                              (See Attr%)
  4107.  
  4108.       See Also:  Attr%, SetText()
  4109.  
  4110.  
  4111.  
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.  
  4121.  
  4122.  
  4123.  
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130.  
  4131.  
  4132.  
  4133.  
  4134.  
  4135.  
  4136.  
  4137.  
  4138.  
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147.  
  4148.  
  4149.  
  4150.  
  4151.                                      Page 58
  4152.  
  4153.  
  4154.  
  4155.  
  4156.                             PBTools:Lite Documentation
  4157.  
  4158.       ---------------------------------------------------------------------
  4159.        PutScrn()      SUB          Replaces screen created by GetScrn$().
  4160.       ---------------------------------------------------------------------
  4161.       Puts a string created with GetScrn$() back onto the screen.
  4162.  
  4163.       Usage:
  4164.        CALL PutScrn(Ypos%, Xpos%, Text$)
  4165.  
  4166.       See Also:  GetScrn$()
  4167.  
  4168.  
  4169.  
  4170.  
  4171.  
  4172.  
  4173.  
  4174.  
  4175.  
  4176.  
  4177.  
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185.  
  4186.  
  4187.  
  4188.  
  4189.  
  4190.  
  4191.  
  4192.  
  4193.  
  4194.  
  4195.  
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202.  
  4203.  
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209.  
  4210.  
  4211.  
  4212.  
  4213.  
  4214.  
  4215.  
  4216.                                      Page 59
  4217.  
  4218.  
  4219.  
  4220.  
  4221.                             PBTools:Lite Documentation
  4222.  
  4223.       ---------------------------------------------------------------------
  4224.        ReAttr()       SUB          Changes color attribute of position.
  4225.       ---------------------------------------------------------------------
  4226.       Changes the color attribute of any position on the screen.
  4227.  
  4228.       Usage:
  4229.        CALL ReAttr(Ypos%, Xpos%, Ylen%, Ypos%, NewColor%)
  4230.  
  4231.       See Also:  Attr%, Fill(), Recolor
  4232.  
  4233.  
  4234.  
  4235.  
  4236.  
  4237.  
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261.  
  4262.  
  4263.  
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.  
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.                                      Page 60
  4282.  
  4283.  
  4284.  
  4285.  
  4286.                             PBTools:Lite Documentation
  4287.  
  4288.       ---------------------------------------------------------------------
  4289.        Recolor()      SUB          Changes color attribute of screen.
  4290.       ---------------------------------------------------------------------
  4291.       Changes the color attribute of all positions on the screen.
  4292.  
  4293.       Usage:
  4294.        CALL Recolor(Old%, New%)
  4295.  
  4296.               Where Old% = the attribute on the screen you want to change.
  4297.                     New% = the attribute on the screen to replace the Old%
  4298.                            attribute with.
  4299.  
  4300.       See Also:  Attr%, Fill(), ReAttr()
  4301.  
  4302.  
  4303.  
  4304.  
  4305.  
  4306.  
  4307.  
  4308.  
  4309.  
  4310.  
  4311.  
  4312.  
  4313.  
  4314.  
  4315.  
  4316.  
  4317.  
  4318.  
  4319.  
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.                                      Page 61
  4347.  
  4348.  
  4349.  
  4350.  
  4351.                             PBTools:Lite Documentation
  4352.  
  4353.       ---------------------------------------------------------------------
  4354.        RPad$()        SUB          Pads right of string with a character.
  4355.       ---------------------------------------------------------------------
  4356.       Pads the right side of a string with a user specified character as
  4357.       many times as you wish.
  4358.  
  4359.       Usage:
  4360.        A$ = RPad$(Lin$, Length%, Char%)
  4361.  
  4362.               Where Lin$    = The string you wish to pad.
  4363.                     Length% = How many characters to pad the right side of
  4364.                               the string with.
  4365.                     Char%   = The ASCII value of the character you wish
  4366.                               to pad the string with.
  4367.  
  4368.       See Also:  LPad$(), Trim$()
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376.  
  4377.  
  4378.  
  4379.  
  4380.  
  4381.  
  4382.  
  4383.  
  4384.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409.  
  4410.  
  4411.                                      Page 62
  4412.  
  4413.  
  4414.  
  4415.  
  4416.                             PBTools:Lite Documentation
  4417.  
  4418.       ---------------------------------------------------------------------
  4419.        RScroll()      SUB          Scrolls portion of screen right.
  4420.       ---------------------------------------------------------------------
  4421.       Scrolls any portion of the screen to the right.
  4422.  
  4423.       Usage:
  4424.        CALL RScroll(TopRow%, LeftCol%, BotRow%, RightCol%, Cols%)
  4425.  
  4426.       See Also:  LScroll(), ScrollDn(), ScrollUp(), ScrollWin
  4427.  
  4428.  
  4429.  
  4430.  
  4431.  
  4432.  
  4433.  
  4434.  
  4435.  
  4436.  
  4437.  
  4438.  
  4439.  
  4440.  
  4441.  
  4442.  
  4443.  
  4444.  
  4445.  
  4446.  
  4447.  
  4448.  
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471.  
  4472.  
  4473.  
  4474.  
  4475.  
  4476.                                      Page 63
  4477.  
  4478.  
  4479.  
  4480.  
  4481.                             PBTools:Lite Documentation
  4482.  
  4483.       ---------------------------------------------------------------------
  4484.        ScrollDn()     SUB          Scrolls portion of screen down.
  4485.       ---------------------------------------------------------------------
  4486.       Scrolls any part of the screen down one line.
  4487.  
  4488.       Usage:
  4489.        CALL ScrollDn(Left%, Right%, Top%, Bottom%, Rows%, Atr%)
  4490.  
  4491.               Where Left%   = The left corner of the screen
  4492.                     Right%  = The right corner of the screen
  4493.                     Top%    = The top most line to scroll
  4494.                     Bottom% = The bottom most line to scroll
  4495.                     Rows%   = The number of rows to scroll
  4496.                     Atr%    = The color attribute to use
  4497.  
  4498.       See Also:  Attr%, ScrollUp(), ScrollWin
  4499.  
  4500.  
  4501.  
  4502.  
  4503.  
  4504.  
  4505.  
  4506.  
  4507.  
  4508.  
  4509.  
  4510.  
  4511.  
  4512.  
  4513.  
  4514.  
  4515.  
  4516.  
  4517.  
  4518.  
  4519.  
  4520.  
  4521.  
  4522.  
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529.  
  4530.  
  4531.  
  4532.  
  4533.  
  4534.  
  4535.  
  4536.  
  4537.  
  4538.  
  4539.  
  4540.  
  4541.                                      Page 64
  4542.  
  4543.  
  4544.  
  4545.  
  4546.                             PBTools:Lite Documentation
  4547.  
  4548.       ---------------------------------------------------------------------
  4549.        ScrollOff      SUB          Toggles Scroll Lock key off.
  4550.       ---------------------------------------------------------------------
  4551.       Toggles the Scroll Lock key to its OFF state.
  4552.  
  4553.       Usage:
  4554.        CALL ScrollOff
  4555.  
  4556.       See Also:  ScrollOn, ScrollStat%
  4557.  
  4558.  
  4559.  
  4560.  
  4561.  
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576.  
  4577.  
  4578.  
  4579.  
  4580.  
  4581.  
  4582.  
  4583.  
  4584.  
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.  
  4594.  
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.  
  4601.  
  4602.  
  4603.  
  4604.  
  4605.  
  4606.                                      Page 65
  4607.  
  4608.  
  4609.  
  4610.  
  4611.                             PBTools:Lite Documentation
  4612.  
  4613.       ---------------------------------------------------------------------
  4614.        ScrollOn       SUB          Toggles Scroll Lock key on.
  4615.       ---------------------------------------------------------------------
  4616.       Toggles the Scroll Lock key to its ON state.
  4617.  
  4618.       Usage:
  4619.        CALL ScrollOn
  4620.  
  4621.       See Also:  ScrollOff, ScrollStat%
  4622.  
  4623.  
  4624.  
  4625.  
  4626.  
  4627.  
  4628.  
  4629.  
  4630.  
  4631.  
  4632.  
  4633.  
  4634.  
  4635.  
  4636.  
  4637.  
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666.  
  4667.  
  4668.  
  4669.  
  4670.  
  4671.                                      Page 66
  4672.  
  4673.  
  4674.  
  4675.  
  4676.                             PBTools:Lite Documentation
  4677.  
  4678.       ---------------------------------------------------------------------
  4679.        ScrollPrint()  SUB          Scrolls window up and prints on bottom.
  4680.       ---------------------------------------------------------------------
  4681.       This sub-routine scrolls the window up one position and prints the
  4682.       user specified text at the bottom of that window.
  4683.  
  4684.       Usage:
  4685.        CALL ScrollPrint(Text$)
  4686.  
  4687.       See Also:  ScrollDn(), ScrollUp(), ScrollWin
  4688.  
  4689.  
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713.  
  4714.  
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.  
  4721.  
  4722.  
  4723.  
  4724.  
  4725.  
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.                                      Page 67
  4737.  
  4738.  
  4739.  
  4740.  
  4741.                             PBTools:Lite Documentation
  4742.  
  4743.       ---------------------------------------------------------------------
  4744.        ScrollStat%    SUB          True if Scroll Lock key is on.
  4745.       ---------------------------------------------------------------------
  4746.       Returns a non-zero number if Scroll Lock is on.
  4747.  
  4748.       Usage:
  4749.        IF ScrollStat% THEN Yep
  4750.  
  4751.       See Also:  ScrollOff, ScrollOn
  4752.  
  4753.  
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759.  
  4760.  
  4761.  
  4762.  
  4763.  
  4764.  
  4765.  
  4766.  
  4767.  
  4768.  
  4769.  
  4770.  
  4771.  
  4772.  
  4773.  
  4774.  
  4775.  
  4776.  
  4777.  
  4778.  
  4779.  
  4780.  
  4781.  
  4782.  
  4783.  
  4784.  
  4785.  
  4786.  
  4787.  
  4788.  
  4789.  
  4790.  
  4791.  
  4792.  
  4793.  
  4794.  
  4795.  
  4796.  
  4797.  
  4798.  
  4799.  
  4800.  
  4801.                                      Page 68
  4802.  
  4803.  
  4804.  
  4805.  
  4806.                             PBTools:Lite Documentation
  4807.  
  4808.       ---------------------------------------------------------------------
  4809.        ScrollUp()     SUB          Scrolls portion of screen up.
  4810.       ---------------------------------------------------------------------
  4811.       Scrolls any portion of the screen up one line.
  4812.  
  4813.       Usage:
  4814.        CALL ScrollUp(Left%, Right%, Top%, Bottom%, Rows%, Atr%)
  4815.  
  4816.       See Also:  Attr%, ScrollDn(), ScrollWin
  4817.  
  4818.  
  4819.  
  4820.  
  4821.  
  4822.  
  4823.  
  4824.  
  4825.  
  4826.  
  4827.  
  4828.  
  4829.  
  4830.  
  4831.  
  4832.  
  4833.  
  4834.  
  4835.  
  4836.  
  4837.  
  4838.  
  4839.  
  4840.  
  4841.  
  4842.  
  4843.  
  4844.  
  4845.  
  4846.  
  4847.  
  4848.  
  4849.  
  4850.  
  4851.  
  4852.  
  4853.  
  4854.  
  4855.  
  4856.  
  4857.  
  4858.  
  4859.  
  4860.  
  4861.  
  4862.  
  4863.  
  4864.  
  4865.  
  4866.                                      Page 69
  4867.  
  4868.  
  4869.  
  4870.  
  4871.                             PBTools:Lite Documentation
  4872.  
  4873.       ---------------------------------------------------------------------
  4874.        ScrollWin      SUB          Scrolls the window in any direction.
  4875.       ---------------------------------------------------------------------
  4876.       Scrolls the current window up, down, left or right.
  4877.  
  4878.       Usage:
  4879.        CALL ScrollWin(Dir%)
  4880.  
  4881.               Where if Dir% = 1 then scrolls window Down.
  4882.                             = 2 then scrolls window Up.
  4883.                             = 3 then scrolls window Left.
  4884.                             = 4 then scrolls window Right.
  4885.  
  4886.       See Also:  OpenWin(), ScrollDn(), ScrollUp()
  4887.  
  4888.  
  4889.  
  4890.  
  4891.  
  4892.  
  4893.  
  4894.  
  4895.  
  4896.  
  4897.  
  4898.  
  4899.  
  4900.  
  4901.  
  4902.  
  4903.  
  4904.  
  4905.  
  4906.  
  4907.  
  4908.  
  4909.  
  4910.  
  4911.  
  4912.  
  4913.  
  4914.  
  4915.  
  4916.  
  4917.  
  4918.  
  4919.  
  4920.  
  4921.  
  4922.  
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931.                                      Page 70
  4932.  
  4933.  
  4934.  
  4935.  
  4936.                             PBTools:Lite Documentation
  4937.  
  4938.       ---------------------------------------------------------------------
  4939.        SetText()      SUB          Sets cursor color from attribute.
  4940.       ---------------------------------------------------------------------
  4941.       Set the cursor color from an attribute created by the Attr%()
  4942.       function.
  4943.  
  4944.       Usage:
  4945.        CALL SetText(Atr%)
  4946.  
  4947.       See Also:  Attr%, Back%(), Fore%()
  4948.  
  4949.  
  4950.  
  4951.  
  4952.  
  4953.  
  4954.  
  4955.  
  4956.  
  4957.  
  4958.  
  4959.  
  4960.  
  4961.  
  4962.  
  4963.  
  4964.  
  4965.  
  4966.  
  4967.  
  4968.  
  4969.  
  4970.  
  4971.  
  4972.  
  4973.  
  4974.  
  4975.  
  4976.  
  4977.  
  4978.  
  4979.  
  4980.  
  4981.  
  4982.  
  4983.  
  4984.  
  4985.  
  4986.  
  4987.  
  4988.  
  4989.  
  4990.  
  4991.  
  4992.  
  4993.  
  4994.  
  4995.  
  4996.                                      Page 71
  4997.  
  4998.  
  4999.  
  5000.  
  5001.                             PBTools:Lite Documentation
  5002.  
  5003.       ---------------------------------------------------------------------
  5004.        StuffKey()     SUB          Stuffs keyboard buffer.
  5005.       ---------------------------------------------------------------------
  5006.       Stuffs the keyboard buffer with up to 16 characters.  May not
  5007.       work with many keyboard enhancers.
  5008.  
  5009.       Usage:
  5010.        CALL StuffKey(Text$)
  5011.  
  5012.       See Also:  ClrKbd, GetKey$, MouseKey$
  5013.  
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.  
  5021.  
  5022.  
  5023.  
  5024.  
  5025.  
  5026.  
  5027.  
  5028.  
  5029.  
  5030.  
  5031.  
  5032.  
  5033.  
  5034.  
  5035.  
  5036.  
  5037.  
  5038.  
  5039.  
  5040.  
  5041.  
  5042.  
  5043.  
  5044.  
  5045.  
  5046.  
  5047.  
  5048.  
  5049.  
  5050.  
  5051.  
  5052.  
  5053.  
  5054.  
  5055.  
  5056.  
  5057.  
  5058.  
  5059.  
  5060.  
  5061.                                      Page 72
  5062.  
  5063.  
  5064.  
  5065.  
  5066.                             PBTools:Lite Documentation
  5067.  
  5068.       ---------------------------------------------------------------------
  5069.        TextEd()       SUB          Lets user edit characters in a string.
  5070.       ---------------------------------------------------------------------
  5071.       Allows user to edit a string that is passed to the routine using all
  5072.       text editing features.
  5073.  
  5074.       Usage:
  5075.        CALL TextEd(Ypos%, Xpos%, Cpos%, TxC%, Hl%, Txt$, Term$)
  5076.  
  5077.               Where Cpos% = Cursor position within the string
  5078.                     TxC%  = The normal text color
  5079.                     Hl%   = The highlighted text color
  5080.                     Txt$  = The text to edit
  5081.                     Term$ = The terminating key that ended the routine
  5082.  
  5083.       See Also:  GetKey$, MaskIn(), NumIn(), TextIn()
  5084.  
  5085.  
  5086.  
  5087.  
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.  
  5126.                                      Page 73
  5127.  
  5128.  
  5129.  
  5130.  
  5131.                             PBTools:Lite Documentation
  5132.  
  5133.       ---------------------------------------------------------------------
  5134.        TextIn()       SUB          Gets text input from the user.
  5135.       ---------------------------------------------------------------------
  5136.       Get input from the user with all text editing features.
  5137.  
  5138.       Usage:
  5139.        CALL TextIn(Ypos%, Xpos%, Max%, TxC%, Hl%, Txt$, Term$)
  5140.  
  5141.               Where Max% = The maximum characters to allow in Txt$
  5142.  
  5143.       See Also:  GetKey$, MaskIn(), NumIn(), TextEd()
  5144.  
  5145.  
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.  
  5153.  
  5154.  
  5155.  
  5156.  
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.  
  5173.  
  5174.  
  5175.  
  5176.  
  5177.  
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185.  
  5186.  
  5187.  
  5188.  
  5189.  
  5190.  
  5191.                                      Page 74
  5192.  
  5193.  
  5194.  
  5195.  
  5196.                             PBTools:Lite Documentation
  5197.  
  5198.       ---------------------------------------------------------------------
  5199.        Title()        SUB          Puts title on current window.
  5200.       ---------------------------------------------------------------------
  5201.       Displays a title on current window in a desired color.
  5202.  
  5203.       Usage:
  5204.        CALL Title(Position%, TCol%, Title$)
  5205.  
  5206.               Where Position% = Placement of title on window.
  5207.                  If Position% = 1 then title is placed at top left.
  5208.                               = 2 then title is placed at top center.
  5209.                               = 3 then title is placed at top right.
  5210.                               = 4 then title is placed at bottom left.
  5211.                               = 5 then title is placed at bottom center.
  5212.                               = 6 then title is placed at bottom right.
  5213.                     TCol%     = The color attribute of text to print.
  5214.  
  5215.       See Also:  Attr%, OpenWin(), WPrint(), WPrintC()
  5216.  
  5217.  
  5218.  
  5219.  
  5220.  
  5221.  
  5222.  
  5223.  
  5224.  
  5225.  
  5226.  
  5227.  
  5228.  
  5229.  
  5230.  
  5231.  
  5232.  
  5233.  
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.  
  5248.  
  5249.  
  5250.  
  5251.  
  5252.  
  5253.  
  5254.  
  5255.  
  5256.                                      Page 75
  5257.  
  5258.  
  5259.  
  5260.  
  5261.                             PBTools:Lite Documentation
  5262.  
  5263.       ---------------------------------------------------------------------
  5264.        Trim$()        FUNCTION     Trims spaces from both ends of string.
  5265.       ---------------------------------------------------------------------
  5266.       Trims all spaces from the left and right side of a given string.
  5267.  
  5268.       Usage:
  5269.        A$ = Trim$(A$)
  5270.  
  5271.       See Also:  LPad$(), RPad$()
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.  
  5314.  
  5315.  
  5316.  
  5317.  
  5318.  
  5319.  
  5320.  
  5321.                                      Page 76
  5322.  
  5323.  
  5324.  
  5325.  
  5326.                             PBTools:Lite Documentation
  5327.  
  5328.       ---------------------------------------------------------------------
  5329.        VidSeg%        FUNCTION     Segment for video I/O on display.
  5330.       ---------------------------------------------------------------------
  5331.       Returns the segment for video I/O on active display.
  5332.  
  5333.       Usage:
  5334.        PRINT "The video segment is located at"; HEX$(VidSeg%)
  5335.  
  5336.       See Also:  CurDisplay%, VidMode%
  5337.  
  5338.  
  5339.  
  5340.  
  5341.  
  5342.  
  5343.  
  5344.  
  5345.  
  5346.  
  5347.  
  5348.  
  5349.  
  5350.  
  5351.  
  5352.  
  5353.  
  5354.  
  5355.  
  5356.  
  5357.  
  5358.  
  5359.  
  5360.  
  5361.  
  5362.  
  5363.  
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379.  
  5380.  
  5381.  
  5382.  
  5383.  
  5384.  
  5385.  
  5386.                                      Page 77
  5387.  
  5388.  
  5389.  
  5390.  
  5391.                             PBTools:Lite Documentation
  5392.  
  5393.       ---------------------------------------------------------------------
  5394.        VidMode%       FUNCTION     Video mode for current display.
  5395.       ---------------------------------------------------------------------
  5396.       Returns the video mode for current display.
  5397.  
  5398.       Usage:
  5399.        PRINT "Current Video Mode is"; VidMode%
  5400.  
  5401.       See Also:  CurDisplay%, VidSeg%
  5402.  
  5403.  
  5404.  
  5405.  
  5406.  
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417.  
  5418.  
  5419.  
  5420.  
  5421.  
  5422.  
  5423.  
  5424.  
  5425.  
  5426.  
  5427.  
  5428.  
  5429.  
  5430.  
  5431.  
  5432.  
  5433.  
  5434.  
  5435.  
  5436.  
  5437.  
  5438.  
  5439.  
  5440.  
  5441.  
  5442.  
  5443.  
  5444.  
  5445.  
  5446.  
  5447.  
  5448.  
  5449.  
  5450.  
  5451.                                      Page 78
  5452.  
  5453.  
  5454.  
  5455.  
  5456.                             PBTools:Lite Documentation
  5457.  
  5458.       ---------------------------------------------------------------------
  5459.        WinColor()     SUB          Changes text color of current window.
  5460.       ---------------------------------------------------------------------
  5461.       Changes the text color of the current window.
  5462.  
  5463.       Usage:
  5464.        CALL WinColor(Atr%)
  5465.  
  5466.       See Also:  Attr%, Back%(), Fore%(), OpenWin(), WPrint(), WPrintC()
  5467.  
  5468.  
  5469.  
  5470.  
  5471.  
  5472.  
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.  
  5483.  
  5484.  
  5485.  
  5486.  
  5487.  
  5488.  
  5489.  
  5490.  
  5491.  
  5492.  
  5493.  
  5494.  
  5495.  
  5496.  
  5497.  
  5498.  
  5499.  
  5500.  
  5501.  
  5502.  
  5503.  
  5504.  
  5505.  
  5506.  
  5507.  
  5508.  
  5509.  
  5510.  
  5511.  
  5512.  
  5513.  
  5514.  
  5515.  
  5516.                                      Page 79
  5517.  
  5518.  
  5519.  
  5520.  
  5521.                             PBTools:Lite Documentation
  5522.  
  5523.       ---------------------------------------------------------------------
  5524.        WPrint()       SUB          Prints string in current window.
  5525.       ---------------------------------------------------------------------
  5526.       Prints a string within the current window in desired color.
  5527.  
  5528.       Usage:
  5529.        CALL WPrint(Ypos%, Xpos%, Text$, Atr%)
  5530.  
  5531.               Where Ypos% and Xpos% are relative to the top right corner
  5532.                     of the window which is considered to be point 0,0.
  5533.  
  5534.       See Also:  Attr%, OpenWin(), WPrintC()
  5535.  
  5536.  
  5537.  
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551.  
  5552.  
  5553.  
  5554.  
  5555.  
  5556.  
  5557.  
  5558.  
  5559.  
  5560.  
  5561.  
  5562.  
  5563.  
  5564.  
  5565.  
  5566.  
  5567.  
  5568.  
  5569.  
  5570.  
  5571.  
  5572.  
  5573.  
  5574.  
  5575.  
  5576.  
  5577.  
  5578.  
  5579.  
  5580.  
  5581.                                      Page 80
  5582.  
  5583.  
  5584.  
  5585.  
  5586.                             PBTools:Lite Documentation
  5587.  
  5588.       ---------------------------------------------------------------------
  5589.        WPrintC()      SUB          Prints centered string in window.
  5590.       ---------------------------------------------------------------------
  5591.       Prints a string centered horizontally within the current window in
  5592.       the desired color.
  5593.  
  5594.       Usage:
  5595.        CALL WPrintC(Ypos%, Text$, Atr%)
  5596.  
  5597.       See Also:  Attr%, OpenWin(), WPrint()
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603.  
  5604.  
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.  
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.  
  5625.  
  5626.  
  5627.  
  5628.  
  5629.  
  5630.  
  5631.  
  5632.  
  5633.  
  5634.  
  5635.  
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642.  
  5643.  
  5644.  
  5645.  
  5646.                                      Page 81
  5647.  
  5648.  
  5649.  
  5650.  
  5651.                             PBTools:Lite Documentation
  5652.  
  5653.       ---------------------------------------------------------------------
  5654.        WPrintCF()     SUB          Prints centered with first highlighted.
  5655.       ---------------------------------------------------------------------
  5656.       This subroutine will print the user specified string centered within
  5657.       the current window with the first character highlighted.
  5658.  
  5659.       Usage:
  5660.        CALL WPrintCF(Lin%, Text$, Atr%)
  5661.  
  5662.               Where Lin%  = The position relative to the active window
  5663.                             where the string is to be printed.
  5664.                     Text$ = The string to be printed.
  5665.                     Atr%  = The color to print the highlighted portion
  5666.                             of the text with.  (See Attr%)
  5667.  
  5668.       See Also:  Attr%, WPrint(), WPrintC()
  5669.  
  5670.  
  5671.  
  5672.  
  5673.  
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.  
  5681.  
  5682.  
  5683.  
  5684.  
  5685.  
  5686.  
  5687.  
  5688.  
  5689.  
  5690.  
  5691.  
  5692.  
  5693.  
  5694.  
  5695.  
  5696.  
  5697.  
  5698.  
  5699.  
  5700.  
  5701.  
  5702.  
  5703.  
  5704.  
  5705.  
  5706.  
  5707.  
  5708.  
  5709.  
  5710.  
  5711.                                      Page 82
  5712.  
  5713.  
  5714.  
  5715.  
  5716.                             PBTools:Lite Documentation
  5717.  
  5718.       ---------------------------------------------------------------------
  5719.        ZoomBox()      SUB          Zooms a box onto the screen.
  5720.       ---------------------------------------------------------------------
  5721.       Zooms a box onto the screen with option for noise.
  5722.  
  5723.       Usage:
  5724.        CALL ZoomBox(Ypos%, Xpos%, Ylen%, Xlen%, BDr%, Sh%, BrC%, TxC%, Ns%)
  5725.  
  5726.               Where BrC% = The color attribute of the border.
  5727.                     TxC% = The color attribute of the window's text.
  5728.                     Ns%  = A non-zero number if you wish for the window
  5729.                            to make noise while zooming onto the screen.
  5730.  
  5731.       See Also:  Box(), OpenWin()
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738.  
  5739.  
  5740.  
  5741.  
  5742.  
  5743.  
  5744.  
  5745.  
  5746.  
  5747.  
  5748.  
  5749.  
  5750.  
  5751.  
  5752.  
  5753.  
  5754.  
  5755.  
  5756.  
  5757.  
  5758.  
  5759.  
  5760.  
  5761.  
  5762.  
  5763.  
  5764.  
  5765.  
  5766.  
  5767.  
  5768.  
  5769.  
  5770.  
  5771.  
  5772.  
  5773.  
  5774.  
  5775.  
  5776.                                      Page 83
  5777.  
  5778.  
  5779.  
  5780.  
  5781.                             PBTools:Lite Documentation
  5782.  
  5783.                                      Appendix
  5784.                                      --------
  5785.  
  5786.       A                                 L
  5787.         AddShadow      1; 52              LPad            41; 62,76
  5788.         Attr           2; 3,4,17,18       LScroll         42; 63
  5789.  
  5790.       B                                 M
  5791.         Back           3; 2,18,71,79      MLocate         43; 35
  5792.         Box            4; 17,57,82        MaskIn          44; 20,53,73,74
  5793.                                           Menu            45
  5794.       C                                   MouseKey        46; 20,35,43,72
  5795.         CapsOff        5; 6,7             MouseOff        47; 35,45,48-50
  5796.         CapsOn         6; 5,7             MouseOn         48; 35,45,47,50
  5797.         CapStat        7; 5,6             MouseStat       49; 35,45,47-50
  5798.         ChangeWin      8; 52              MouseWin        50; 35
  5799.         CheckKey       9; 12,20           MoveWin         51; 8,52
  5800.         ClearWin      10
  5801.         CloseWin      11; 22,57         N
  5802.         ClrKbd        12; 9,20,72         NoShadow        52; 1,51
  5803.         CurBot        13; 15              NumIn           53; 20,43,73,74
  5804.         CurDisplay    14; 77,78           NumOff          54; 55,56
  5805.         CurTop        15; 13              NumOn           55; 54,56
  5806.                                           NumStat         56
  5807.       D
  5808.         DelChar       16; 23            O
  5809.                                           OpenWin         57; 10,11,22,44
  5810.       F
  5811.         Fill          17; 60,61         P
  5812.         Fore          18; 2,3,71,79       PFirst          58; 19
  5813.                                           PutScrn         59; 21
  5814.       G
  5815.         GetFrst       19                R
  5816.         GetKey        20; 9,12,31-33      RPad            60; 41,76
  5817.         GetScrn       21; 59              RScroll         61; 42
  5818.                                           ReAttr          62; 2,3,17,61
  5819.       I                                   Recolor         63; 17,60
  5820.         InitPBScreen  22
  5821.         InsChar       23; 16            S
  5822.         InsertOff     24; 25,26           ScrollDn        64; 42,63,67,69
  5823.         InsertOn      25; 24,26           ScrollOff       65; 66,68
  5824.         InsStat       26; 24,25           ScrollOn        66; 65,68
  5825.         IsAlpha       27; 28,30,36,38     ScrollPrint     67
  5826.         IsAlphaNum    28; 27,30,36,38     ScrollStat      68; 65,66
  5827.         IsAlt         29; 9,31-33,37      ScrollUp        69; 42,63,64,67
  5828.         IsASCII       30; 27,28,36,38     ScrollWin       70; 58
  5829.         IsCaps        31; 9,29,32,33      SetText         71; 9,12
  5830.         IsCtrl        32; 9,29,31,33      StuffKey        72;
  5831.         IsInsert      33; 9,24-26,29
  5832.         IsLShift      34; 9,29,31-33    T
  5833.         IsMouse       35; 45-50           TextEd          73; 20,43,53,74
  5834.         IsNum         36; 9,27,28,30      TextIn          74; 20,43,53,73
  5835.         IsNumLock     37; 29,31-33,39     Title           75
  5836.         IsPunct       38; 27,28,30,36     Trim            76; 41,62
  5837.         IsRShift      39; 9,29,31-34
  5838.         IsScroll      40; 9
  5839.  
  5840.  
  5841.                                      Page 84
  5842.  
  5843.  
  5844.  
  5845.  
  5846.                             PBTools:Lite Documentation
  5847.  
  5848.       V
  5849.         VidSeg        77; 14,78
  5850.         VidMode       78; 14,77
  5851.  
  5852.       W
  5853.         WPrint        79; 10,75,79,81
  5854.         WPrintC       80; 10,75,29,80
  5855.         WPrintCF      81; 10,19
  5856.         WinColor      82; 2,3,10
  5857.  
  5858.       Z
  5859.         ZoomBox       83
  5860.  
  5861.  
  5862.  
  5863.  
  5864.  
  5865.  
  5866.  
  5867.  
  5868.  
  5869.  
  5870.  
  5871.  
  5872.  
  5873.  
  5874.  
  5875.  
  5876.  
  5877.  
  5878.  
  5879.  
  5880.  
  5881.  
  5882.  
  5883.  
  5884.  
  5885.  
  5886.  
  5887.  
  5888.  
  5889.  
  5890.  
  5891.  
  5892.  
  5893.  
  5894.  
  5895.  
  5896.  
  5897.  
  5898.  
  5899.  
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.                                      Page 85
  5907.  
  5908.